//
//  CYBaseView.m
//  Demo
//
//  Created by lc4y on 2017/11/5.
//  Copyright © 2017年 lc4y. All rights reserved.
//

#import "CYBaseView.h"

@interface CYBaseView ()

/** 无数据视图 **/
@property(nonatomic,strong,readwrite) CYNoDataView *cy_noDataView;

@end

@implementation CYBaseView

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.cy_noDataImageN = @"bg_set";
        self.cy_noDataTitleN = @"默认暂无数据";
    }
    return self;
}

- (void)cy_registerCellNib:(NSString *)cellNibName {}

- (void)cy_registerCellClass:(NSString *)cellClassString {}

- (void)cy_registerHeaderNib:(NSString *)headerNibName {}

- (void)cy_registerHeaderClass:(NSString *)headerClassString {}

- (void)cy_registerFooterNib:(NSString *)footerNibName {}

- (void)cy_registerFooterClass:(NSString *)footerClassString {}

- (kCYCustomCellID *)cy_cellIDWithIndexPath:(NSIndexPath *)indexPath { return nil; }
- (kCYCustomHeaderID *)cy_sectionHeaderIDWithSection:(NSInteger)section { return nil; }
- (kCYCustomFooterID *)cy_sectionFooterIDWithSection:(NSInteger)section { return nil; }

- (void)cy_refreshCell:(id)cell indexPath:(NSIndexPath *)indexPath {}

- (void)cy_listViewReloadView {}

- (void)cy_addHeaderRefreshControl:(HeaderRefreshCallBack)refreshCallBack {}

- (void)cy_addFooterRefreshMoreControl:(FooterRefreshMoreCallBack)refreshCallBack {}

- (void)cy_endRefreshControl {}

- (void)cy_editCellRow:(NSIndexPath *)rowIndexPath menuIndex:(NSInteger)menuIndex {}

- (void)cy_didSelectCellRow:(NSIndexPath *)rowIndexPath {}

- (void)cy_listViewDidScroll:(UIScrollView *)scrollView {}

- (CYNoDataView *)cy_noDataView {
    if( !_cy_noDataView ) {
        _cy_noDataView = [CYNoDataView new];
    }
    return _cy_noDataView;
}

@end
